home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / poly3d-r / makefile.sas < prev    next >
Encoding:
Makefile  |  1993-12-30  |  2.9 KB  |  111 lines

  1.  
  2. #
  3. # Makefile for the POLY3D-R rendering program.
  4. #
  5.  
  6. #-----
  7. #
  8. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  9. # is sourced from several directories relative path specification will
  10. # be simple wrong.
  11. #
  12.  
  13. SRC_DIR = Work:T/Irit
  14. #
  15. # All libraries created will be installed into the LIB_DIR directory.
  16. #
  17. LIB_DIR = $(SRC_DIR)/lib
  18.  
  19. #
  20. # All includes files associated with the installed libraries will be
  21. # installed into the INC_DIR directory.
  22. #
  23. INC_DIR = $(SRC_DIR)/inc
  24.  
  25. #
  26. # All binaries created will be installed into the BIN_DIR directory.
  27. #
  28. BIN_DIR = $(SRC_DIR)/bin
  29.  
  30. #
  31. # Uncomment the correct set of variables to be used or modify it for
  32. # your system.
  33. #
  34. # -D flags:
  35. #
  36. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  37. #
  38. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  39. #    be used.
  40. #
  41. #  Emulation to the following function are available by defining the
  42. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  43. # -DGETCWD - if getcwd is not defined in this system.
  44. # -DSTRSTR - if strstr is not defined in this system.
  45. # -DSTRDUP - if strdup is not defined in this system.
  46. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  47. #
  48. # -DTIMES - if times is defined in your system, otherwise uses time.
  49. #
  50. # -DRAND - if the (s)rand random number generator exists.
  51. # -DRAND48 - ?rand48 random number generators exists.
  52. #    If non of RAND or RAND48 are defined, (s)random is used.
  53. #
  54. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  55. #
  56. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  57. #    varargs.h.
  58. #
  59. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  60. #
  61. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  62. #
  63. # Other, possibly useful defines (for c code development):
  64. #
  65. # -DDEBUG - for some debugging functions in the code (that can be invoked
  66. #        from a debugger).
  67. #
  68.  
  69. #
  70. # Flags for Amiga using SAS/C
  71. #
  72. # Use DEFINE=M68881 if you have a 68881/68882/68040
  73. # Use DEFINE=MIEEE if you want to use the IEEE math library
  74. # Use DEFINE=MFFP if you want to use the FFP math library
  75. #
  76. CC = sc
  77. DFLAGS = DEFINE=M68881 DEFINE=RAND48
  78. CFLAGS = $(DFLAGS) CPU=68040 MATH=68882 NOSTACKCHECK STRMERGE IGNORE=79
  79. MORELIBS = 
  80. GRAPDRVS =nuldrvs amidrvs
  81.  
  82. #
  83. # Default rule for compilation.
  84. #
  85. .c.o:
  86.     $(CC) $(CFLAGS) IDIR= IDIR=$(INC_DIR) IDIR=$(SRC_DIR)/amigalib $<
  87.  
  88. #
  89. # All libraries.
  90. LIBS = $(LIB_DIR)/geom.lib $(LIB_DIR)/prsr.lib $(LIB_DIR)/cagd.lib\
  91.        $(LIB_DIR)/misc.lib $(LIB_DIR)/gif.lib
  92. #-----
  93.  
  94. OBJS    = poly3d-r.o prepdata.o colortbl.o evalcolr.o scandata.o
  95.  
  96. poly3d-r:    $(OBJS)
  97.     slink TO poly3d-r FROM LIB:c.o $(OBJS)\
  98.     LIB $(LIBS) $(MORELIBS) LIB:scm881.lib LIB:sc.lib SC ND NOICONS
  99.  
  100. install: poly3d-r
  101.     Copy poly3d-r $(BIN_DIR)
  102.     Delete poly3d-r
  103.     Copy poly3d-r.cfg $(BIN_DIR)
  104.  
  105. # Dependencies starts here - do not touch, generated automatically.
  106. colortbl.o:    program.h
  107. evalcolr.o:    program.h
  108. poly3d-r.o:    program.h
  109. prepdata.o:    program.h
  110. scandata.o:    program.h
  111.